//
//  WKBiAddressListVC.m
//  LLWallet
//
//  Created by wangfei on 2025/9/15.
//

#import "WKBiAddressListVC.h"
#import "FFWalletConst.h"

@interface WKBiAddressListVC ()<WKBiAddressListVMDelegate>

@end

@implementation WKBiAddressListVC

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.viewModel = [WKBiAddressListVM new];
        self.viewModel.delegate = self;
//        self.viewModel.delegate = self;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refresh) name:LIM_NOTIFY_WALLET_BNAKCARD_REFRESH object:nil];
}

- (NSString *)langTitle {
    return LLang(@"我的地址");
}

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self name:LIM_NOTIFY_WALLET_BNAKCARD_REFRESH object:nil];
}
- (void)ff_coinSelect:(WKBiAddressListResp *)item{
    if (self.confirmBlock){
        self.confirmBlock(item);
    }
    [self.navigationController popViewControllerAnimated:YES];
}

-(void) refresh {
    [self reloadRemoteData];
}

@end
